import java.util.*;
public class ArraySquareReverse {
    public static void main(String[] args) {
        int a[] = new int[4];
        int i;
        Scanner scanner = new Scanner (System.in);
        for(i=0;i<=3;i++) {
            a[i] = scanner.nextInt();
        }
        for(i=a.length-1;i>=0;i--) {
            System.out.print(a[i]*a[i]+" ");
        }
    }
}
